package org.mcb.zebra.portal.services;

import javax.servlet.http.HttpServletRequest;

import org.apache.pluto.PortletWindow;
import org.apache.pluto.spi.ResourceURLProvider;

/**
 * 
 * @author Trần Tùng - mailto : <a
 *         href="mailto:myname74119@gmail.com">myname74119@gmail.com</a>
 * 
 */
public class ZebResourceURLProvider implements ResourceURLProvider {
	private String base="";
	private String url=null;
	public ZebResourceURLProvider(HttpServletRequest request,
			PortletWindow portletWindow) {
	}

	@Override
	public void setAbsoluteURL(String path) {
		url =  path;
	}

	@Override
	public void setFullPath(String path) {
		url = base+ path;

	}

	@Override
	public String toString() {
		return url==null?"":url;
	}
}
